package com.example;

import com.itheima.EnableHeaderConfig;
import com.itheima.HeaderConfig;
import com.itheima.MyImportSelector;
import com.itheima.TokenParser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

//@ComponentScan({"com.itheima"})//@ComponentScan注解: 扫描指定包下的所有组件
//@Import({TokenParser.class})//@Import注解: 导入指定类交给IOC容器管理(普通类,配置类，接口实现类)
//@Import({HeaderConfig.class})
//@Import({MyImportSelector.class})
@EnableHeaderConfig//@EnableHeaderConfig注解: 开启自定义的HeaderConfig配置类
@ServletComponentScan
@SpringBootApplication
public class BlpGyWebManagementApplication {

    public static void main(String[] args) {
        SpringApplication.run(BlpGyWebManagementApplication.class, args);
    }
    //声明第三方bean
//    @Bean //将当前方法的返回值对象交给IOC容器管理, 成为IOC容器bean
//    public SAXReader saxReader(){
//        return new SAXReader();
//    }

}
